package structuralModel.combinationModel.organization;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 功能描述:物理边界叶组件
 * 2024/08/22
 *
 * @author ZhangYi
 * @see PhysicalBoundaryCompoent
 */
public class PhysicalBoundaryLeafCompoent extends PhysicalBoundaryCompoent{


	public PhysicalBoundaryLeafCompoent() {
	}

	public PhysicalBoundaryLeafCompoent(PhysicalBoundary physicalBoundary) {
		super(physicalBoundary);
	}

	@Override
	protected PhysicalBoundaryCompoent getElement(String parentCode) {
		return physicalBoundaryCompoentMapIndex.containsKey(parentCode) ? physicalBoundaryCompoentMapIndex.get(parentCode) : null;
	}

	@Override
	public void queryAll() {
		for (PhysicalBoundaryCompoent physicalBoundaryCompoent : physicalBoundaryCompoentList) {
			System.out.println(physicalBoundaryCompoent);
		}
	}
}
